<template>
	<view class="content">
		<view class="block swiper-block">
			<SwiperMap style="width: 100%;height: 100%;" :list="swiperList"></SwiperMap>
		</view>
		<view @click="navigate('/page_other/help/help')" class="btn-block">
			<image :src="imageUrl+'/home/bbw.png'" style="width: 48rpx;height: 86rpx;"></image>
			<view class="name">帮帮我</view>
		</view>
		<view class="count-block ">
			<view class="count-item">
				<view class="count-name FangZhengHanZhenGuangBiaoJianTi">访问量</view>
				<view class="count FangZhengHanZhenGuangBiaoJianTi">{{countList.browseCount}}</view>
			</view>
			<view class="line"></view>
			<view class="count-item">
				<view class="count-name FangZhengHanZhenGuangBiaoJianTi">岗位数</view>
				<view class="count FangZhengHanZhenGuangBiaoJianTi">{{countList.jobCount}}</view>
			</view>
			<view class="line"></view>
			<view class="count-item">
				<view class="count-name FangZhengHanZhenGuangBiaoJianTi">注册人数</view>
				<view class="count FangZhengHanZhenGuangBiaoJianTi">{{countList.customerCount}}</view>
			</view>
			<view class="line"></view>
			<view class="count-item">
				<view class="count-name FangZhengHanZhenGuangBiaoJianTi">企业数</view>
				<view class="count FangZhengHanZhenGuangBiaoJianTi">{{countList.enterpriseCount}}</view>
			</view>
		</view>
		<block v-if="identity==1">
			<view class="block menu-block">
				<view class="menu-item">
					<image :src="imageUrl+'/home/1招聘求职.png'" class="menu-img"
						@click="navigate('/page_other/job_hunting/job_hunting')"></image>
					<image :src="imageUrl+'/home/零工市场.png'" class="menu-img" @click="showDevelopingTips()"></image>
				</view>
				<view class="menu-item">
					<image :src="imageUrl+'/home/就业创业.png'" @click="navigate('/page_other/serve/index')"
						class="menu-img"></image>
				</view>
				<view class="menu-item">
					<image :src="imageUrl+'/home/技能培训.png'" class="menu-img"
						@click="navigate('/page_other/train/index')"></image>
					<image :src="imageUrl+'/home/政策法规.png'" class="menu-img"
						@click="navigate('/page_other/policy/title')"></image>
				</view>
			</view>
			<view style="width: 100%;margin-top: -60rpx;position: relative;margin-bottom: 30rpx;padding: 30rpx;">
				<image :src="imageUrl+'/home/高校毕业生专区.png'" style="width: 100%;height: 200rpx;"
					@click="navigate('/page_other/obtain_employment/colleges_universities')"></image>
			</view>
		</block>
		<block v-if="identity==2">
			<view class="block menu-block">
				<view class="menu-item">
					<image :src="imageUrl+'/home/招聘英才.png'" class="menu-img"
						@click="navigate('/page_other/job_hunting/job_hunting')"></image>
					<image :src="imageUrl+'/home/惠企政策.png'" class="menu-img"
						@click="navigate('/page_other/policy/title')"></image>
				</view>
				<view class="menu-item">
					<image :src="imageUrl+'/home/零工市场.png'" class="menu-img" @click="showDevelopingTips()"></image>
					<image :src="imageUrl+'/home/政校企联盟.png'" class="menu-img"
						@click="navigate('/page_other/union/union')"></image>
				</view>
			</view>
		</block>
		<view class="block article-block">
			<view class="article-tab">
				<view @click="noticeActive=2103" :class="noticeActive===2103?'active':''" class="tab-item">通知公告</view>
				<view @click="noticeActive=2104" :class="noticeActive===2104?'active':''" class="tab-item">工作动态</view>
				<view @click="noticeActive=2135" :class="noticeActive===2135?'active':''" class="tab-item">招聘信息</view>
				<view style="margin-left: 60rpx;color: #c5c5c5;"
					@click="navigate('/page_other/article/index?type='+noticeActive)">更多></view>
			</view>
			<view class="article-list" v-if="noticeActive!=1">
				<view @click="navigate('/page_other/article/detail?id='+item.id)" class="article-item"
					v-for="(item,index) in newsList" :key="item.id">
					<image mode="aspectFill" :src="item.ima_url" class="cover-photo"></image>
					<view class="info">
						<view class="title overflow-line">{{item.title}}</view>
						<view class="abstract">{{item.abstract}}</view>
						<view class="time">{{item.crt_time}}</view>
					</view>
				</view>
			</view>
			<view class="article-list" style="padding-top: 30rpx;" v-if="noticeActive==1">
				<template v-if="hotJob.length>0">
					<view
						@click="navigate('/page_other/job_hunting/job_detail/index?id='+item.id+'&jobType='+item.jobType)"
						class="list-item" v-for="(item,index) in hotJob" :key="item.id">
						<view class="list-info">
							<view class="title-info">
								<view class="title">{{item.jobTitle}}</view>
								<view class="fast-job" v-if="item.worry">急招</view>
								<view v-if="item.isHeat">
									<image style="width: 21px;height: 25px;padding-top: 10rpx;"
										src="https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/heat.png">
									</image>
								</view>
							</view>
							<view class="detail-item">
								<view class="money-item">
									<view class="wage" v-if="item.minSalary">{{item.minSalary}}-{{item.maxSalary}}元
									</view>
									<view class="wage" v-else>面议</view>
								</view>
								<view class="detail-info">
									<view class="name">{{item.comRecruiters.comPosition}}</view>
									<image mode="aspectFill" :src="item.comRecruiters.user.faceUrl" class="photo">
									</image>
								</view>
							</view>
							<view class="address-item">
								<view class="address iconfont icon-dizhi">{{item.jobAddress}}</view>
								<view class="distance">距离:{{item.distances}}km</view>
							</view>
							<view class="label-block">
								<view class="label-item" v-for="label in item.comRecruiters.enterprise.welfareList">
									{{label}}
								</view>
							</view>
						</view>

					</view>
				</template>
				<view v-else class="empty">暂无数据</view>
			</view>
		</view>
		<view class="uniappDemo" v-if="adList.length>0">
			<!-- 弹框内容 -->
			<view class="uniappBox">
				<view :hidden="!uniappShowModel" class="uniappContant">
					<view>
						<!-- previous-margin指的是当前图片的左边框距离屏幕最左边的距离 -->
						<swiper style="height: 480rpx;" @change="handlechange" :current="mycurrent"
							:indicator-dots="true" :circular="true" :interval="3000" :duration="1000">
							<swiper-item v-for="i,index in adList[0].sonModelList" :key="i">
								<view :class="['swiper-item',index==mycurrent ? 'active' : '']">
									<img :src="i.imgUrl" style="width: 100%;padding: 40rpx;" alt="" srcset="">
								</view>
							</swiper-item>
						</swiper>
					</view>
					<view style="width: 100%;text-align: center;">
						{{adList[0].title}}
					</view>
					<view class="btn"
						style="width: 280rpx;text-align: center;height: 80rpx;display: flex;justify-content: center;align-items: center;background: #ff3057;color: #fff;font-size: 28rpx;border-radius: 40rpx;margin: 0 auto;margin-top: 80rpx;"
						@click="confirm">
						我知道了
					</view>
				</view>
				<!-- 背景黑色蒙版 -->
				<view class="uniappBgdCol" :hidden="!uniappShowModel" @tap="uniappShowModel = false"></view>
			</view>
		</view>
		<view class="uniappDemo">
			<!-- 弹框内容 -->
			<view class="uniappBox">
				<view :hidden="!showDialog" class="uniappContant1">
					<view style="padding: 30rpx;margin-top: 40rpx;" v-if="jobTitle&&fairTitle&&trainTitle">
						您好，根据您的求职意向，已为您匹配到{{jobTitle}}、{{fairTitle}}、{{trainTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="jobTitle&&fairTitle">
						您好，根据您的求职意向，已为您匹配到{{jobTitle}}、{{fairTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="jobTitle&&trainTitle">
						您好，根据您的求职意向，已为您匹配到{{jobTitle}}、{{trainTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="fairTitle&&trainTitle">
						您好，根据您的求职意向，已为您匹配到{{fairTitle}}、{{trainTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="fairTitle">
						您好，根据您的求职意向，已为您匹配到{{fairTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="jobTitle">
						您好，根据您的求职意向，已为您匹配到{{jobTitle}}！
					</view>
					<view style="padding: 30rpx;margin-top: 40rpx;" v-else-if="trainTitle">
						您好，根据您的求职意向，已为您匹配到{{jobTitle}}！
					</view>
					<view class="btn-item"
						style="display: flex;justify-content: space-between;margin-top: 30rpx;margin-bottom: 30rpx;align-items: flex-end;border-top: 1px solid #efefef;height: 80rpx;">
						<view @click="dialogCallback(1)"
							style="width: calc(100% / 2);color: #999;display: flex;align-items: center;justify-content: center;border-right: 1px solid #efefef;">
							忽略
						</view>
						<view @click=" dialogCallback(2)"
							style="width: calc(100% / 2);color: #fe7526;display: flex;align-items: center;justify-content: center;">
							去看看
						</view>
					</view>
				</view>
				<!-- 背景黑色蒙版 -->
				<view class="uniappBgdCol" :hidden="!showDialog" @tap="showDialog = false"></view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getNewsList as getNewsListApi
	} from '@/api/notice.js'
	import {
		getSwiperList as getSwiperListApi,
		getIndexCountApi,
		addBrowseApi
	} from '@/api/static.js'
	import {
		showDevelopingTips
	} from '@/util/util.js'
	import {
		getPublishApi,
		getHotEnterprise
	} from '@/api/job_hunting.js'
	import {
		clickStatisticsApi,
	} from '@/api/home.js'
	import {
		getIntentionList as getIntentionListApi
	} from '@/api/resume.js';
	import {
		getJobRecommendation,
		jobFairRecommendation,
		trainRecommendation
	} from '@/api/job_hunting.js';
	export default {
		data() {
			return {
				uniappShowModel: true,
				noticeActive: 2103,
				showDialog: false,
				publishActive: 1,
				oderDate: 1,
				orderDistance: 0,
				latitude: 0,
				longitude: 0,
				newsList: [],
				imageUrl: '',
				swiperList: [],
				hotJob: [],
				hotEnterprise: [],
				countList: [],
				adList: [],
				mycurrent: 0,
				trainTitle: '',
				jobTitle: '',
				fairTitle: '',
				state: 0
			}
		},
		watch: {
			noticeActive: {
				handler(val) {
					if (val != 1) {
						this.getNewsList()
					} else {
						this.oderDate = 0;
						this.orderDistance = 1;
						this.getHotList()
					}
				},
				immediate: true
			},
			publishActive: {
				handler(val) {
					if (val == 1) {
						this.oderDate = 1;
						this.orderDistance = 0;
					} else {
						this.oderDate = 0;
						this.orderDistance = 1;
					}
					this.getHotList()

				},
				immediate: true
			},
		},

		methods: {
			getIntention() {
				getIntentionListApi({
					id: 0
				}).then((res) => {
					if (!res.data) {
						this.showDialog = false;
					}
					this.showDialog = true;
					this.getJobRecommendation()
					this.getFair()
					this.getRecommendation()
					getApp().globalData.state = 2
				})
			},
			getJobRecommendation() {
				getJobRecommendation({
					page: 1,
					limit: 1,
				}).then((res) => {
					let count = res.count
					if (count !== 0) {
						this.jobTitle = '相关职位';
					}
				})
			},
			getFair() {
				jobFairRecommendation({
					page: 1,
					limit: 1,
				}).then((res) => {
					let count = res.count
					if (count !== 0) {
						this.fairTitle = '相关招聘会';
					}
				})
			},
			getRecommendation() {
				trainRecommendation({
					page: 1,
					limit: 5,
				}).then((res) => {
					let count = res.count
					if (count !== 0) {
						this.trainTitle = '相关培训机构';
					}
				})
			},
			dialogCallback(e) {
				if (e == 1) {
					this.showDialog = false;
				} else {
					uni.switchTab({
						url: '/pages/found/index'
					})
					this.showDialog = false;
				}
			},
			clickStatistics() {
				type: 2
				clickStatisticsApi().then((res) => {
					console.log(res)
				})
			},
			handlechange(e) {
				this.mycurrent = e.detail.current
			},
			uniappModel() {
				this.uniappShowModel = true
			},
			// 点击确定按钮模态框消失
			confirm() {
				this.uniappShowModel = false
			},
			//onShareAppMessage 分享给朋友
			// #ifdef MP
			onShareAppMessage: function(res) {
				if (res.from === 'button') {
					// 来自页面内转发按钮
					console.log(res.target)
				}
				return {
					title: '就业平台',
					path: '/pages/home/index'
				}
			},
			showDevelopingTips() {
				wx.navigateToMiniProgram({
					appId: 'wx63326d0b5a594b38',
					path: 'pages/index/index',
					success(res) {
						// 打开成功
						console.log('打开成功')
					}
				})
			},
			showKsbmTips() {
				wx.navigateToMiniProgram({
					appId: 'wx63326d0b5a594b38',
					path: 'pages/index/index',
					success(res) {
						// 打开成功
						console.log('打开成功')
					}
				})
			},
			// #endif
			onErrorImg(item) {
				this.$set(item, 'logoUrl', this.imageUrl + '/job_hunting/job_detail/enterprise.jpg');
			},

			getHotList() {
				if (this.identity == 1) {
					uni.getLocation({
						isHighAccuracy: true,
						success: (current) => {
							this.latitude = current.latitude;
							this.longitude = current.longitude;
							uni.setStorageSync('latitude', this.latitude)
							uni.setStorageSync('longitude', this.longitude)
							getPublishApi({
								page: 1,
								limit: 3,
								oderDate: this.oderDate,
								orderDistance: this.orderDistance,
								longitude: this.longitude,
								latitude: this.latitude,
								distances: this.publishActive
							}).then((res) => {
								this.hotJob = res.list;
							})
						},
						fail: (e) => {
							this.showToast('获取位置失败，请重试！');
						}
					})

					// getHotEnterprise({
					// 	page: 1,
					// 	limit: 3
					// }).then((res) => {
					// 	this.hotEnterprise = res.list
					// })
				}
			},
			getIndexCount() {
				getIndexCountApi().then((res) => {

					this.countList = res ?? [];
				})
			},
			addBrowse() {
				addBrowseApi()
			},
			navigate(url) {
				uni.navigateTo({
					url
				})
			},
			switchTo(url) {
				uni.switchTab({
					url
				});
			},
			getNewsList() {
				getNewsListApi({
					page: 1,
					limit: 3,
					type: this.noticeActive
				}).then((res) => {
					this.newsList = res.list ?? [];
				})
			},
			getSwiperList() {
				getSwiperListApi({
					userType: this.$store.getters.identity,
					seat: 1
				}).then((res) => {
					this.swiperList = res ?? []
				})
			},
			getAdList() {
				getSwiperListApi({
					userType: 3,
					seat: 4
				}).then((res) => {
					this.adList = res ?? []
				})
			}
		},
		computed: {
			identity() {
				return this.$store.getters.identity
			}
		},
		onLoad() {
			this.addBrowse();
			this.getIndexCount();
			if (!this.$store.getters.identity) {
				uni.reLaunch({
					url: '/pages/index/index'
				})
				return;
			}
			this.imageUrl = this.globalConfig.imageUrl
			this.getSwiperList();
			this.getAdList();
			this.getHotList();
			this.clickStatistics();
			if (this.$store.getters.token && this.$store.getters.identity == 1) {
				if (getApp().globalData.state == 1) {
					this.getIntention()
				}
			}
		}
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
		//background-image: linear-gradient(#FB093B, #F8F8F8, #F8F8F8);
		min-height: 100vh;
		position: relative;
		padding-bottom: 30rpx;

		.top-bg {
			width: 100%;
		}

		.count-block {
			width: calc(100% - 60rpx);
			margin: 20rpx auto;
			background: #fff;
			border-radius: 5px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 30rpx 0;
			font-size: 28rpx;
			margin-top: -120rpx;
			position: relative;

			.count-item {
				width: calc((100% - 8px)/5);
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;

				.count {
					color: #0256FF;
					margin-top: 15rpx;
				}
			}

			.line {
				height: 48rpx;
				width: 2px;
				border-radius: 100%;
				background-image: linear-gradient(#fff, rgba(2, 86, 225, 0.5), #fff);
			}
		}

		.btn-block {
			position: fixed;
			right: 20rpx;
			bottom: 30rpx;
			z-index: 999;
			width: 130rpx;
			height: 130rpx;
			color: #333;
			font-size: 28rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			background: #fff;
			border-radius: 50%;
			box-shadow: 0 0 18rpx 0 #dddddd;

			.btn-icon {
				width: 50rpx;
				height: 50rpx;
				text-align: center;
				font-size: 56rpx;
				margin-bottom: 10rpx;
			}

			.name {
				text-align: center;
				width: 100%;
			}
		}

		.map-img {
			width: 100%;
		}

		.block {
			width: 100%;
			margin-bottom: 30rpx;
			padding: 30rpx;
		}

		.block.header-block {
			position: relative;
			display: flex;
			flex-direction: row;
			height: 70rpx;
			align-items: center;

			.search {
				background: #fff;
				height: 100%;
				border-radius: 40rpx;
				padding: 0 20rpx;
				padding-left: 70rpx;
				font-size: 28rpx;
				flex-grow: 1;
			}

			.iconfont.icon-sousuo {
				position: absolute;
				transform: translate(0, -50%);
				top: 50%;
				left: 20rpx;
				font-size: 38rpx;
				font-weight: bold;
				color: #999;
			}
		}

		// .block.menu-block {
		// 	width: 100%;
		// 	width: calc(100% - 40rpx);
		// 	margin: 0 auto;
		// 	display: flex;
		// 	flex-direction: row;
		// 	position: relative;
		// 	margin-top: -160rpx;
		// 	background: #fff;
		// 	border-radius: 5px;

		// 	.menu-item {
		// 		width: 20%;
		// 		display: flex;
		// 		flex-direction: column;
		// 		align-items: center;
		// 		font-size: 26rpx;

		// 		.menu-icon {
		// 			margin-top: 10rpx;
		// 			width: 100rpx;
		// 			height: 100rpx;
		// 		}

		// 		.menu-name {
		// 			margin-top: 10rpx;
		// 		}
		// 	}
		// }

		.block.swiper-block {
			height: 620rpx;
			box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
			padding: 0;
		}

		.block.menu-block {
			display: flex;
			flex-direction: column;
			width: 100%;
			margin-top: -20rpx;
			position: relative;

			.menu-item {
				display: flex;
				flex-direction: row;
				width: 100%;
				margin-bottom: 20rpx;

				.menu-img {
					//width: calc((100% - 30rpx) / 2);
					margin-right: 20rpx;
					height: 200rpx;
				}

				.menu-img:last-child {
					margin-right: 0;
				}
			}

			.menu-item2 {
				position: absolute;
				top: 25%;
				height: 240rpx;
				left: 34%;
				width: 240rpx;
				display: flex;
				align-items: center;
				justify-content: center;

				.item2-img {
					width: 240rpx;
					height: 240rpx;
				}
			}
		}

		.block.feature-block {
			height: 480rpx;
			width: 100%;
			display: flex;
			flex-direction: row;
			color: #484848;
			margin-bottom: 0;

			.headline {
				font-weight: bold;
				font-size: 28rpx;
			}

			.subtitle {
				font-size: 24rpx;
				margin-top: 10rpx;
			}

			.left-feature {
				width: calc((100%/3) - 6rpx);
				margin-right: 12rpx;

				.feature {
					width: 100%;
					height: calc(100% - 12rpx);
					border-radius: 12rpx;
					padding: 20rpx;
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/live_with_duty.jpg') no-repeat center;
					background-size: 100% 100%;
				}
			}

			.right-feature {
				width: calc((100%/3*2) - 6rpx);
				height: 100%;
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;

				.feature-item {
					width: calc(50% - 6rpx);
					height: calc(32% - 6rpx);
					display: flex;
					flex-direction: column;
					justify-content: center;
					border-radius: 12rpx;
					padding: 20rpx;
				}

				.feature-item:nth-child(odd) {
					margin-right: 10rpx;
				}

				.feature-item:nth-child(1) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/difficult.jpg') no-repeat center;
					background-size: 100% 100%;

				}

				.feature-item:nth-child(2) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/to_support.jpg') no-repeat center;
					background-size: 100% 100%;

				}

				.feature-item:nth-child(3) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/job_fair.jpg') no-repeat center;
					background-size: 100% 100%;
				}

				.feature-item:nth-child(4) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/six.png') no-repeat center;
					background-size: 100% 100%;
				}

				.feature-item:nth-child(5) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/three_a_help.jpg') no-repeat center;
					background-size: 100% 100%;
				}

				.feature-item:nth-child(6) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/five.jpg') no-repeat center;
					background-size: 100% 100%;
				}
			}
		}

		.block.feature-block1 {
			height: 370rpx;
			width: 100%;
			display: flex;
			flex-direction: row;
			color: #484848;
			margin-bottom: 0;

			.headline {
				font-weight: bold;
				font-size: 28rpx;
			}

			.subtitle {
				font-size: 24rpx;
				margin-top: 10rpx;
			}

			.left-feature {
				width: calc((100%/3) - 6rpx);
				margin-right: 12rpx;

				.feature {
					width: 100%;
					height: calc(100% - 12rpx);
					border-radius: 12rpx;
					padding: 20rpx;
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/live_with_duty.jpg') no-repeat center;
					background-size: 100% 100%;
				}
			}

			.right-feature {
				width: calc((100%/3*2) - 6rpx);
				height: 100%;
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;

				.feature-item {
					width: calc(50% - 6rpx);
					height: calc(49% - 6rpx);
					display: flex;
					flex-direction: column;
					justify-content: center;
					border-radius: 12rpx;
					padding: 20rpx;
				}

				.feature-item:nth-child(odd) {
					margin-right: 10rpx;
				}

				.feature-item:nth-child(1) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/difficult.jpg') no-repeat center;
					background-size: 100% 100%;

				}

				.feature-item:nth-child(2) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/to_support.jpg') no-repeat center;
					background-size: 100% 100%;

				}

				.feature-item:nth-child(3) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/job_fair.jpg') no-repeat center;
					background-size: 100% 100%;
				}

				.feature-item:nth-child(4) {
					background: url('https://job-1306862033.cos.ap-chengdu.myqcloud.com/miniprogram-static/home/six.png') no-repeat center;
					background-size: 100% 100%;
				}
			}
		}

		.block.article-block {
			width: calc(100% - 60rpx);
			margin: 0 auto;
			border-radius: 10rpx;
			background: #fff;
			padding-bottom: 0;
			margin-top: -40rpx;

			.article-tab {
				width: 100%;
				height: 70rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				font-weight: bold;
				font-size: 34rpx;
				color: #313131;

				.tab-item {
					margin-right: 30rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.tab-item.active {
					color: #FF0014;
					//border-bottom: 2px solid #DE6349;
					height: 100%;
				}

				.tab-item:last-child {
					margin: 0;
				}
			}

			.article-list {
				width: 100%;
				display: flex;
				flex-direction: column;

				.enterprise-item {
					width: 100%;
					background: #fff;
					border-radius: 10rpx;
					box-shadow: 0 0 10px 0 #efefef;
					padding: 20rpx;
					display: flex;
					flex-direction: row;
					justify-content: center;
					margin: 20rpx auto;

					.cover-photo {
						width: 150rpx;
						height: 150rpx;
						background: #efefef;
						margin-right: 20rpx;
						border-radius: 20rpx;

					}

					.list-info {
						width: 70%;
						display: flex;
						flex-direction: column;

						view {
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.title {
							color: #000;
							font-weight: bold;
							font-size: 34rpx;
						}

						.address {
							display: flex;
							flex-direction: row;

							.add {
								color: #999;
								font-size: 26rpx;
								margin-top: 20rpx;
							}
						}

						.city {
							color: #999;
							font-size: 26rpx;
							margin-left: 4rpx;
						}

						.imgs2 {
							width: 17px;
							height: 17px;
							margin-left: 70rpx;
							vertical-align: bottom;
						}

						.positionCount {
							font-size: 28rpx;
							margin-top: 20rpx;
						}

						.label-block {
							font-size: 24rpx;
							display: flex;
							flex-direction: row;
							flex-wrap: wrap;
							justify-content: left;
							margin-top: 20rpx;

							.label-item {
								padding: 8rpx 20rpx;
								background: #F5F6F8;
								color: #999;
								margin: 0 10rpx 20rpx 0;
							}
						}

						.wage {
							color: #FF0014;
							font-size: 36rpx;
							font-weight: bold;

							.unit {
								font-size: 28rpx;
								font-weight: normal;
							}
						}
					}
				}

				.list-item:last-child {
					border-bottom: none;
				}

				.list-item {
					width: 100%;
					background: #fff;
					border-radius: 10rpx;
					//box-shadow: 0 0 10px 0 #efefef;
					//padding: 20rpx;
					display: flex;
					flex-direction: row;
					justify-content: center;
					margin-bottom: 20rpx;
					border-bottom: 1px solid #efefef;

					.detail-info {
						width: 260rpx;
						//height: 200rpx;
						display: flex;
						flex-direction: row;
						flex-wrap: wrap;
						justify-content: center;
						align-items: center;

						.name {
							width: 110rpx;
							font-size: 24rpx;
							color: #999;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
							text-align: center;
							text-indent: 15rpx;
						}

						.photo {
							width: 70rpx;
							height: 70rpx;
							border-radius: 100%;
							background: #efefef;
						}

						.apply-btn {
							border: 1px solid #FE7526;
							border-radius: 8rpx;
							color: #FE7526;
							font-size: 24rpx;
							padding: 8rpx 28rpx;
							position: relative;
							left: 30rpx;
						}
					}

					.list-info {
						// width: calc(100% - 180rpx);
						width: 100%;
						display: flex;
						flex-direction: column;

						>view {
							width: 100%;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.title-info {
							display: flex;
							flex-direction: row;
							align-items: center;

							.title {
								color: #000;
								font-weight: bold;
								font-size: 34rpx;
							}

							.fast-job {
								width: 60rpx;
								height: 38rpx;
								border: 1rpx solid #FF0014;
								font-size: 24rpx;
								text-align: center;
								color: #FF0014;
								margin-left: 20rpx;
								border-radius: 6rpx;
							}
						}

						.detail-item {
							display: flex;
							justify-content: space-between;
							align-items: center;

							.money-item {
								margin-top: 20rpx;

								.wage {
									color: #FF0014;
									font-size: 36rpx;
									font-weight: bold;

									.unit {
										font-size: 28rpx;
										font-weight: normal;
									}
								}
							}

							.detail-info {
								width: 180rpx;
								// height: 200rpx;
								display: flex;
								flex-direction: row;
								flex-wrap: wrap;
								justify-content: center;
								align-items: center;

								.name {
									width: 110rpx;
									font-size: 24rpx;
									color: #999;
									overflow: hidden;
									text-overflow: ellipsis;
									white-space: nowrap;
									text-align: center;
									text-indent: 15rpx;
								}

								.photo {
									width: 70rpx;
									height: 70rpx;
									border-radius: 100%;
									background: #efefef;
								}

								.apply-btn {
									border: 1px solid #FE7526;
									border-radius: 8rpx;
									color: #FE7526;
									font-size: 24rpx;
									padding: 8rpx 28rpx;
									position: relative;
									left: 30rpx;
								}
							}
						}

						.address-item {
							display: flex;
							justify-content: space-between;

							.address {
								width: 440rpx;
								color: #999;
								font-size: 26rpx;
								margin-top: 20rpx;
								overflow: hidden;
								text-overflow: ellipsis;
								white-space: nowrap;
							}

							.distance {
								color: #999;
								font-size: 26rpx;
								margin-top: 20rpx;
							}
						}

						.label-block {
							font-size: 24rpx;
							display: flex;
							flex-direction: row;
							flex-wrap: wrap;
							justify-content: left;
							margin-top: 20rpx;

							.label-item {
								padding: 8rpx 20rpx;
								background: #F5F6F8;
								color: #999;
								margin: 0 10rpx 20rpx 0;
							}
						}

						.wage {
							color: #FF0014;
							font-size: 36rpx;
							font-weight: bold;

							.unit {
								font-size: 28rpx;
								font-weight: normal;
							}
						}
					}
				}

				.article-item {
					height: 220rpx;
					width: 100%;
					padding: 30rpx 0;
					border-bottom: 1px solid #efefef;
					display: flex;
					flex-direction: row;

					.cover-photo {
						width: 160rpx;
						height: 160rpx;
						border-radius: 10rpx;
						margin-right: 20rpx;
						background: #efefef;
					}

					.info {
						width: calc(100% - 180rpx);
						height: 100%;

						.title {
							font-weight: bold;
						}

						.abstract {
							font-size: 24rpx;
							color: #999;
							display: -webkit-box;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 2;
							overflow: hidden;
							margin-top: 6rpx;
							line-height: 1.5;
						}

						.time {
							font-size: 28rpx;
							color: #999;
						}
					}
				}

				.article-item:last-child {
					border: none;
				}
			}
		}
	}
</style>
<style scoped>
	.uniappBgdCol {
		position: fixed;
		top: 0%;
		left: 0%;
		width: 100%;
		height: 100%;
		background-color: black;
		z-index: 1000;
		-moz-opacity: 0.6;
		opacity: .6;
		filter: alpha(opacity=88);
	}

	.uniappContant {
		position: fixed;
		top: 30%;
		left: 55%;
		width: 70%;
		height: 50%;
		margin-left: -40%;
		background-color: white;
		z-index: 1001;
		border-radius: 20rpx;
	}

	.uniappContant1 {
		position: fixed;
		top: 40%;
		left: 55%;
		width: 70%;
		min-height: 20%;
		margin-left: -40%;
		background-color: white;
		z-index: 1001;
		border-radius: 20rpx;
	}
</style>
<style lang="scss">
	.swiper-item {
		border-radius: 30rpx;
		overflow: hidden;
		height: 85%;
		transform: scale(0.8);
		transition: all 0.5s ease;
		text-align: center;
		transition: all 0.5s ease-in-out;

		&.active {
			transform: scale(1);
		}
	}
</style>